package com.loong.data.controller.forehead;

import com.loong.common.mvc.BaseForeheadController;
import com.loong.common.param.BaseIdParam;
import com.loong.common.rest.Result;
import com.loong.common.validator.group.CommonValidate;
import com.loong.data.handler.UserHandler;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @Description: 处理前台会员请求的controller
 * @Author: 刘群
 * @Date: 2020/11/12 16:21
 */
@RestController
@RequestMapping("forehead/data/user")
public class UserForeheadController extends BaseForeheadController {

    @Resource
    private UserHandler userHandler;

    /**
     * 查询用户信息
     * @return 响应的结果
     */
    @PostMapping("find")
    public Result findUserModel(){
        return handlerExecutor.execute(() -> userHandler.findUserModelById(super.getUserDTO().getId()));
    }


}
